//
//  PainterRectAVG.m
//  ChartRefactor
//
//  Created by CaoJun on 15/3/16.
//  Copyright (c) 2015年 CaoJun. All rights reserved.
//

#import "PainterRectAVG.h"

using namespace std;
using namespace ytx;

@implementation PainterRectAVG

- (vector<int>) getDrawRowData:(int) rowCount widthType:(SizeType::SizeType) widthType withData:(Quotation *) data
{
    const vector<string> & timeString = data->getBottomSideText(widthType);
    vector<int> drawRowData;
    for (vector<string>::const_iterator it = timeString.begin(); it != timeString.end(); ++it) {
        if((*it) == ""){
            drawRowData.push_back(0);
        }
        else{
            drawRowData.push_back(1);
        }
    }
    return drawRowData;
}

@end
